<form action="" method="post">
    <label>Nick:</label>
    <input type="text" name="nick" value="<?= $_POST['nick'] ?>" /><br />
    <label>Message:</label><br />
    <textarea name="message"></textarea><br />
    <input type="submit" value="Send message" />
</form>

<? foreach ($this->book as $row) { ?>
<hr />
<div class="book-item">
    <span class="float-right"><?= $row['added'] ?></span>
    Nick: <b><?= htmlspecialchars($row['nick']) ?></b><br />
    <?= nl2br(htmlspecialchars($row['message'])) ?>
</div>
<? } ?>
